<configuration>
   <system.web>

      <sessionState 
          mode="Custom" 
          customProvider="CustomStateProvider">
         <providers>
           <add name="CustomStateProvider" 
            type="CustomStateProviderAssembly, 
              CustomStateProviderNamespace.CustomStateProvider"/>
         </providers>
      </sessionState>

   </system.web>
</configuration>
